package com.flyduck.vueshop.product.constant;

/**
 * <p>
 * ProductConstant
 * </p>
 *
 * @author flyduck
 * @since 2024-07-12
 */
public class ProductConstant {
    public static enum AppAdPosition {
        carousel("carousel", "轮播图"),;

        private final String code;
        private final String description;

        AppAdPosition(String code, String description) {
            this.code = code;
            this.description = description;
        }

        public String getCode() {
            return code;
        }
    }

    public static enum AppProductSort {
        DEFAULT_SORT(0, "默认排序"),
        NEWEST_FIRST(1, "最新上市"),
        HIGHEST_SALES(2, "销量最多");

        private int code;
        private String description;

        AppProductSort(int code, String description) {
            this.code = code;
            this.description = description;
        }

        public int getCode() {
            return code;
        }

        public String getDescription() {
            return description;
        }
    }
}
